package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class DataSetProviderTypes extends IntegerPair
{
	private static final long serialVersionUID = 1L;
    private DataSetProviderTypes(int id,String name)
    {
        super(id,name);
    }

    public int hashCode()
    {
        return super.hashCode();
    }

    public boolean equals(Object oib)
    {
        return super.equals(oib);
    }

    public boolean equals(IntegerPair oib)
    {
        return super.equals(oib);
    }

    public static final DataSetProviderTypes SQL = new DataSetProviderTypes(1,"JDBC");
    public static final DataSetProviderTypes CLASS = new DataSetProviderTypes(2,"External");
    public static DataSetProviderTypes fromName(String strName)
    {
        return(DataSetProviderTypes) IntegerPair.findConstant(DataSetProviderTypes.class,strName,SQL);
    }

}
